package com.edu.exam.enums.quality.monitoring;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 严重性级别枚举
 */
public enum SeverityLevel implements BaseEnum {
    CRITICAL("CRITICAL", "严重"),
    HIGH("HIGH", "高级"),
    MEDIUM("MEDIUM", "中级"),
    LOW("LOW", "低级"),
    INFO("INFO", "信息"),
    WARNING("WARNING", "警告"),
    ERROR("ERROR", "错误"),
    FATAL("FATAL", "致命"),
    MINOR("MINOR", "轻微"),
    TRIVIAL("TRIVIAL", "微小");

    private final String code;
    private final String description;

    SeverityLevel(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
